﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace NotificationService
{
    // NOTE: If you change the interface name "IService1" here, you must also update the reference to "IService1" in Web.config.
    [ServiceContract(SessionMode = SessionMode.Required)]
    public interface IService1
    {
        [OperationContract]
        [ServiceKnownType(typeof(TestEvent))]
        AbstractEvent GetEvent(string userId, string eventId);

        [OperationContract]
        [ServiceKnownType(typeof(TestEvent))]
        void FireEvent(string userId, AbstractEvent evnt);

        [OperationContract]
        List<string> GetEvents(string userId);

        [OperationContract]
        void OnEventRecived(string userId, string eventId);
    }
}
